﻿<UserControl x:Class="Tisbi.LawFirm.UI.Pages.AdminSettings"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:mui="http://firstfloorsoftware.com/ModernUI"
             xmlns:forms="clr-namespace:Tisbi.LawFirm.UI.Views.Controls.Forms"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid Style="{StaticResource ContentRoot}" DataContext="{Binding Source={StaticResource Locator}, Path=AdminSettingsViewModel}">
        <StackPanel HorizontalAlignment="Left">
            <StackPanel MinWidth="200">
                <mui:ModernButton Command="{Binding SettingSqlConnectionStringCommand}" EllipseDiameter="42" HorizontalAlignment="Left" EllipseStrokeThickness="2" IconWidth="20" IconHeight="20" ToolTip="Настроить подключение к БД" IconData="{StaticResource SqlIconData}" >
                    Новые настройки подключения к БД
                </mui:ModernButton>
            </StackPanel>

            <StackPanel Margin="0 10 0 0" MinWidth="200">
                <mui:ModernButton Command="{Binding BackUpCommand}" EllipseDiameter="42" HorizontalAlignment="Left" EllipseStrokeThickness="2" IconWidth="20" IconHeight="20" ToolTip="Настроить подключение к БД" IconData="{StaticResource BackUpIconData}" >
                    Сохранить резервную копию БД
                </mui:ModernButton>
            </StackPanel>

            <StackPanel Margin="0 10 0 0" MinWidth="200">
                <mui:ModernButton Command="{Binding RestoreCommand}" EllipseDiameter="42" HorizontalAlignment="Left" EllipseStrokeThickness="2" IconWidth="20" IconHeight="20" ToolTip="Настроить подключение к БД" IconData="{StaticResource RestoreIconData}" >
                    Восстановить БД из резервной копии
                </mui:ModernButton>
            </StackPanel>
        </StackPanel>
        
    </Grid>
</UserControl>
